package tt;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import tt.Vuser;

public class Remover extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		String id = req.getParameter("id");
		
		Long idint = Long.parseLong(id);
		
		Vuser.INSTANCE.remove(idint);
		
		resp.sendRedirect("/index.jsp");
	}
}
